﻿using UnityEngine;
using System.Collections;

public class AnimatorSetup : MonoBehaviour {

	Animator anim;
	public AnimationClip animNorth;
	public AnimationClip animSouth;
	public AnimationClip animWest;
	public AnimationClip animEast;
	// Use this for initialization
	void Start () {
		anim = GetComponent<Animator> ();

		RuntimeAnimatorController myController = anim.runtimeAnimatorController;
		AnimatorOverrideController animatorOverride = new AnimatorOverrideController();

		animatorOverride.runtimeAnimatorController = myController;
		animatorOverride["animNorth"] = animNorth;
		animatorOverride["animSouth"] = animSouth;
		animatorOverride["animWest"] = animWest;
		animatorOverride["animEast"] = animEast;

		anim.runtimeAnimatorController = animatorOverride;
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
